home *** CD-ROM | disk | FTP | other *** search
/ .net - The Best of 1999/2000 / netCD Special01.iso / pc / Software / Dreamweaver / dreamw.exe / data1.cab / App_Files / Configuration / Objects / Head / Meta.js < prev    next >
Encoding:
JavaScript  |  1999-12-09  |  702 b   |  26 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. //---------------   GLOBAL VARIABLES   ---------------
  4.  
  5. var helpDoc = MM.HELP_objMeta;
  6.  
  7. //---------------     API FUNCTIONS    ---------------
  8.  
  9. function objectTag() {
  10.   var Form = document.theForm;
  11.   var retVal='',selInd;
  12.   var selInd=Form.metaAttribute.selectedIndex;
  13.   var metaAttribute = (selInd==0)?'name':'http-equiv'
  14.   retVal='<meta ' + metaAttribute + '="' + 
  15.     Form.metaValue.value + '" Content="' + Form.Content.value +
  16.     '">';    
  17.  
  18.   return retVal;
  19. }
  20.  
  21. //---------------    LOCAL FUNCTIONS   ---------------
  22.  
  23. function initializeUI(){
  24.   document.theForm.metaValue.focus(); //set focus in Value text field
  25. }
  26.